package com.MedDroid.control;

import com.MedDroid.MainApp;
import com.MedDroid.control.message.Message;
import android.content.Context;

/**
 * Created with IntelliJ IDEA.
 * User: Romen
 * Date: 28/11/13
 * Time: 2:30 PM
 * Description:
 */
public abstract class AbstractControl
{
	Context ApplicationContext;
	MainApp App;

	public AbstractControl(MainApp A)
	{
		App = A;
		ApplicationContext = A.getApplicationContext();
	}

	public AbstractControl()
	{}

	private Message sendMessage(AbstractControl TargetControl, Message Content)
	{
		return TargetControl.processMessage(Content);
	}

	public abstract Message processMessage(Message Msg);
}
